#include <stdio.h>
#include <stdlib.h>

void main()
{
    int a=10000;
    if(a>1000000){
        printf("%lf",100000*0.1+100000*0.075+200000*0.05+200000*0.03+400000*0.015+(a-1000000)*0.001);
        printf("test5");
    }
    else if(600000<a&&a<=1000000){
        printf("%lf",100000*0.1+100000*0.075+200000*0.05+200000*0.03+(a-600000)*0.015);
        printf("test4");
    }
    else if(400000<a&&a<=600000){
        printf("%lf",100000*0.1+100000*0.075+200000*0.05+(a-400000)*0.03);
        printf("test3");
    }
    else if(200000<a&&a<=400000){
        printf("%lf",100000*0.1+100000*0.075+(a-200000)*0.05);
        printf("test2");
    }
    else if(100000<a&&a<=200000){
        printf("%lf",100000*0.1+(a-100000)*0.075);
         printf("test1");
    }
    else if(a<=100000){
        printf("%lf",a*0.1);
        printf("test");
    }
        getchar();
}
